#include "tcp_server.hpp"
void Usage(std::string proc)
{
  std::cout << "Usage: " << proc << "port" << std::endl;
}

int main(int argc, char *argv[])
{
  if(argc != 2)
  {
    Usage(argv[0]);
    exit(1);
  }
  //std::cout << "hello server!" << std::endl;
  TcpServer tsvr(atoi(argv[1])); // = new TcpServer(8081);
  tsvr.InitTcpServer();
  tsvr.Loop();
  
  return 0;
}
